第 7 步:我们为点击事件制作了一个占位符函数,但在开始游戏之前我们不会使用它。
- 在,在add_click_event()下拖入Define Function with Docstring 。
- 将my_function()重命名为play_game() 。
- 将新函数的文档字符串更改为: """Creates an interval event to start the game""" 。
- 按此顺序将以下参数添加到play_game() : my_display , my_dictionary
To navigate the page using the TAB key, first press ESC to exit the code editor.